package com.yehangtech.designpattern.行为型_观察者模式.service.impl;


import com.yehangtech.designpattern.行为型_观察者模式.service.api.IMinibusTargetService;

public class MinibusTargetServiceImpl implements IMinibusTargetService {
    @Override
    public String lottery(String uId) {
        return Math.abs(uId.hashCode()) % 2 == 0 ? "恭喜你，编码".concat(uId).concat("在本次摇号中签") : "很遗憾，编码".concat(uId).concat("在本次摇号未中签或摇号资格已过期");
    }
}
